<?php
/**
 * Created by PhpStorm.
 * User: sl
 * Date: 17-6-23
 * Time: 下午10:35
 */

namespace ActionsHttp;


use Data\Tree_productor_hist_DAO;

class ProductorInfoHist extends BaseActionHttp
{
    public function doAction() {
        $customer_id_random_str = $this->data[CUSTOMER_ID];
        $customer_id = substr($customer_id_random_str,10);
        // 检测登陆是否过期
        if (!($this->checkSession($customer_id))) {
            return;
        }

        $productor_id = $this->data[PRODUCTOR_ID];
        $productor_list_hist = Tree_productor_hist_DAO::getListByProductor_id($productor_id);

        // 返回数据
        $this->setValue(PRODUCTOR_LIST_HIST,$productor_list_hist);
        $this->ResponseDataToCurrentClient();
    }
}